<?php require_once('Connections/local.php'); ?>

<?php

session_start();
if (!isset($_SESSION['MM_COD_USUARIO']))
    header("location:login.php");
	
	?>
	
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sefran Sport</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="js/jquery.tools.min.js" type="text/javascript"></script>
</head>
<body>

<div id="wrapper">
	<div id="content">
		<div id="header">
		<h1><a href="#">SEFRAN SPORT</a></h1>	
		
		</div>
		<div id="menu">
			<ul>	
				<li class="selected"><a href="inicio.php" target="main">Inicio</a> /</li>
				<li><a href="reserva.php" target="main">Reserva</a> /</li>
				<li><a href="baja.php" target="main">Baja</a> /</li>
				<li><a href="contacto.php" target="main">Contacto</a> /</li>
				<li><a href="misreservas.php" target="main">Mis Reservas</a></li>
                <li><a href="http://127.0.0.1/prestashop/index.php">Tienda Virtual</a></li>
			</ul>
		</div><div class="inner_copy"></div>
		<div id="container">	
			<div id="main">
				<h2>Sefran<span class="blue">Sport</span></h2>
			
<iframe frameborder="0" align="right" width="100%" height="100%" src="inicio.php" name="main"> </iframe>
				<div style="clear:both"></div>
			</div>		
		<?php
echo "logeado como: ". $_SESSION['MM_Username']."<br>" ;
echo "<div align=right>";
			echo "<h1>"."<a href=cerrarsesion.php>salir</a>"."</h1>";
				echo "</div>";
echo "usted es: ". $_SESSION['MM_ROLE'];	
			
				?>				
		</div>			 
</div>
<script type="text/javascript">$(document).ready(function() {$("#infinite").scrollable().circular(); });</script>
</body>
</html>